package by.dkusch.aircompany.services.impl;

import java.util.Set;

import org.springframework.stereotype.Service;

import by.dkusch.aircompany.dao.CrewDao;
import by.dkusch.aircompany.model.tables.Crew;
import by.dkusch.aircompany.model.tables.Person;
import by.dkusch.aircompany.services.CrewService;

@Service
public class CrewServiceImpl extends AbstractServiceImpl<Long, Crew> implements CrewService {

	@Override
	public Crew getByIdWithLazyDetails(Long id) {
		return ((CrewDao) dao).getByIdWithLazyDetails(id);
	}

	@Override
	public Set<Person> getPersonSet(Long id) {
		return ((CrewDao) dao).getPersonSet(id);
	}
}
